import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';

export const firstColumns: BasicColumn[] = [
  {
    title: '时间',
    dataIndex: 'logDate',
    width: 160,
    ellipsis: true,
    resizable: true,
  },
  {
    title: '用户',
    dataIndex: 'realName',
    width: 100,
    ellipsis: true,
    resizable: true,
  },
  {
    title: '类型',
    dataIndex: 'logType',
    width: 100,
    ellipsis: true,
    resizable: true,
  },
  {
    title: '原始ID',
    dataIndex: 'logId',
    width: 100,
    ellipsis: true,
    resizable: true,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'logType',
    label: '类型',
    component: 'Select',
    colProps: { span: 6 },
    defaultValue: '-1',
    componentProps: {
      allowClear: false,
      options: [
        { value: '-1', label: '不限' },
        { value: '0', label: '创建' },
        { value: '1', label: '修改' },
        { value: '2', label: '删除' },
      ],
    },
  },
  {
    field: 'userName',
    label: '用户',
    component: 'Input',
    colProps: { span: 6 },
  },
  {
    field: 'dates',
    label: '日期',
    component: 'RangePicker',
    colProps: { span: 8 },
  },
];

export const formSchema: FormSchema[] = [];
